package com.zhentao.controller;

import com.zhentao.model.common.buiness.pojo.Address;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.AddressService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 86150
 */
@RestController
@RequestMapping("/address")
@Api(tags = "address",description = "地址")
public class AddressController {
    @Resource
    private AddressService addressService;
    @PostMapping("/listid")
    @ApiOperation("用户端：地址")
    public ResponseResult listId(@RequestBody Address address){
    return  addressService.list(address);
    }
}
